package inference;

import com.dtw.TimeWarpInfo;
import com.timeseries.TimeSeries;

public class DTW {
	public static void main(String[] args)throws Exception{
		TimeSeries tsI = new TimeSeries("erlang.csv", false, false, ',');
	    TimeSeries tsJ = new TimeSeries("food.csv", false, false, ',');
	    TimeWarpInfo info = com.dtw.DTW.getWarpInfoBetween(tsI, tsJ);	    
	    
        System.out.println("FOOD");

	    System.out.println("Warp Distance: " + info.getDistance());
	    System.out.println("Warp Path:     " + info.getPath());
	    
	    
	    tsJ = new TimeSeries("shops.csv", false, false, ',');
	    info = com.dtw.DTW.getWarpInfoBetween(tsI, tsJ);

	    System.out.println("SHOPS");
	    System.out.println("Warp Distance: " + info.getDistance());
	    System.out.println("Warp Path:     " + info.getPath());
	    
	}

}
